package ua.kpi_java_training.zabrodskyi.module2;

/**
 * @author Maksym Zabrodskyi
 * @version 10-Jun-2013
 */
public class Printer {

    public static void printToConsole(String string) {
        System.out.println(string);
    }

    public static void printToConsole(String message, int value) {
        System.out.println(String.format(message + "%s", value));
    }

    public static void printToConsole(String message, double value) {
        System.out.println(String.format(message + "%.1f", value));
    }

    public static void printToConsole(String beforeMessage, int value,
                                      String afterMessage) {
        System.out.println(String.format(beforeMessage + "%s" + afterMessage,
                value));
    }

    public static void printToConsole(String beforeMessage, double value,
                                      String afterMessage) {
        System.out.println(String.format(beforeMessage + "%.1f" + afterMessage,
                value));
    }

}
